package com.javaee.term.controller;

import com.javaee.term.mapper.ContactMapper;
import com.javaee.term.model.Contact;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author 陈伯瑞
 * date 2019/12/13 0013 22:45
 * version 1.0
 **/
@RestController
public class TestController {

    @Autowired
    private ContactMapper mapper;

    @RequestMapping("/hello")
    public Contact test(){
        return  mapper.selectByPrimaryKey(1);
    }
}
